﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = EngineeringEquipment
		Group                          = AccumulatorRechargers
		Module                         = platinum alchemist tycoon accumulator recharger
		CpuUsage                       = 28.00 TF
		ReactorUsage                   = 2.00 RP
		Type                           = Passive
		Slot                           = Legs
		TechnologicalLevel             = T4+
		Mass                           = 90.00 kg
		PackedVolume                   = 0.25 U
		Volume                         = 0.50 U
		AccumulatorRechargeTime        = -20.00 %
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Platinum Alchemist Tycoon accumulator recharger module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:54</remarks>
    public sealed class PlatinumAlchemistTycoonAccumulatorRecharger : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="PlatinumAlchemistTycoonAccumulatorRecharger"/> class.
        /// </summary>
        public PlatinumAlchemistTycoonAccumulatorRecharger()
            : base(
            "Platinum Alchemist Tycoon accumulator recharger",
            "",
            ModuleMetaGroupsEnum.EngineeringEquipment,
            ModuleGroupsEnum.AccumulatorRechargers,
            TechnologyLevelsEnum.Level4|TechnologyLevelsEnum.Elite,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(CpuUsage<double>),28.00),
				new LazyFeature(typeof(ReactorUsage<double>),2.00),
				new LazyFeature(typeof(ModuleMass<double>),90.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 90.00 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.AccumulatorRechargeTime, -0.2 ){ Unit = UnitsEnum.Percentage, DisplayName = "Accumulator recharge time"  }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Legs; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}